/*
 * ThaiWordBreakIterator.java
 * 
 * Created on 30-May-2007, 03:48:17
 * 
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package net.siit.ling;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.text.CharacterIterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.siit.datatype.AnnotatedRange;

/**
 *
 * @author arthit
 */
public class ThaiWordBreakIterator extends java.text.BreakIterator {
    private List<AnnotatedRange<String>> tokens;
    private ThaiSeg segmentor;
    
    public ThaiWordBreakIterator() {
        try {
            segmentor = new net.siit.ling.ThaiSeg();
        } catch (FileNotFoundException ex) {
            Logger.getLogger("global").log(Level.SEVERE, null, ex);
        } catch (UnsupportedEncodingException ex) {
            Logger.getLogger("global").log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger("global").log(Level.SEVERE, null, ex);
        } catch (Exception ex) {
            Logger.getLogger("global").log(Level.SEVERE, null, ex);
        }
    }

    public int first() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public int last() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public int next(int arg0) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public int next() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public int previous() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public int following(int arg0) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public int current() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public CharacterIterator getText() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void setText(CharacterIterator arg0) {        
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
